package com.xiaoyun.service;

import com.xiaoyun.enums.SearchFriendsStatusEnum;
import com.xiaoyun.netty.ChatMsg;
import com.xiaoyun.pojo.Users;
import com.xiaoyun.pojo.bo.UserSearchBO;
import com.xiaoyun.pojo.vo.FriendRequestVO;
import com.xiaoyun.pojo.vo.MyFriendsVO;

import java.util.List;

public interface UserService {

    public boolean queryUsernameIsExist(String username);

    public Users queryUserForLogin(String username, String pwd);

    public Users saveUser(Users user);

    public Users updateUserInfo(Users user);


    public SearchFriendsStatusEnum preconditionSearchFriends(UserSearchBO userSearchBO);

    public Users queryUserInfoByUsername(String username);

    public void sendFriendRequest(UserSearchBO userSearchBO);

    public List<FriendRequestVO> queryFriendRequestList(String acceptUserId);

    public void deleteFriendRequest(String sendUserId, String acceptUserId);

    public void passFriendRequest(String sendUserId, String acceptUserId);

    List<MyFriendsVO> queryMyFriend(String userId);

    public String saveMsg(ChatMsg chatMsg);

    public void updateMshSigned(List<String> msgIdList);

    List<com.xiaoyun.pojo.ChatMsg> getUnReadMsgList(String acceptUserId);
}
